package com.wjjun.data.module

import com.wjjun.data.api.TestApi
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.*
import dagger.hilt.android.internal.managers.ApplicationComponentManager
import retrofit2.Retrofit

/**
 *
 * author : wangjunjun
 * date   : 2022/7/20
 * desc   :
 */
@Module
@InstallIn(
    ServiceComponent::class,
    ActivityRetainedComponent::class,
)
object RepositoryModule {

    @Provides
    fun providesTestApi(retrofit: Retrofit): TestApi {
        return retrofit.create(TestApi::class.java)
    }


}